# 四个数字1、2、3、4能组成多少个互不相同的三位数字
arry  = [1,2,3,4]
# 集合数据类型
result = set()
count = 0
for a in range(1,5):
    for b in range(1,5):
        for c in range(1,5):
            if (a != b) and (b != c) and (c != a):
                # count += 1
                num = a * 100 + b * 10 + c
                result.add(num)
                
count = len(result)
print('一共能组成：%d 种结果' % count)
print(result)
